const Koa = require('koa');

const app = new Koa();

const main = ctx => {
    let n = Number(ctx.cookies.get('my') || 0 ) +1;
    ctx.cookies.set('my',n);
    ctx.response.body = ctx.cookies.get('my');
};

app.use(main);
app.listen(3006);
